package sanrenxing.dayEnd.backRepertoryTotal.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sanrenxing.dayEnd.backRepertoryTotal.dao.WaveDao;
import sanrenxing.dayEnd.backRepertoryTotal.domain.Wave;
import sanrenxing.dayEnd.backRepertoryTotal.service.WaveService;

import java.util.List;

@Service
public class WaveServiceImpl implements WaveService {
    @Autowired
    private WaveDao waveDao;
    @Override
    public List<Wave> selectAll(int start, int end) {
        return waveDao.selectByPage(start,end);
    }

    @Override
    public int count() {
        return waveDao.count();
    }
}
